1#! /bin/sh 2 3usage() 4{ 5 cat <<EOF 6Usage: xslt-config [OPTION]... 7 8Known values for OPTION are: 9 10 --prefix print the install prefix 11 --libs print library linking information 12 --cflags print pre-processor and compiler flags 13 --plugins print plugin directory 14 --version output version information 15EOF 16 17 exit $1 18} 19 20if test $# -eq 0; then 21 usage 1 22fi 23 24while test $# -gt 0; do 25 case "$1" in 26 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 27 *) optarg= ;; 28 esac 29 30 case "$1" in 31 --version) 32 echo 1.1.28 33 exit 0 34 ;; 35 36 --prefix) 37 echo /usr 38 exit 0 39 ;; 40 41 --plugins) 42 echo /usr/lib/libxslt-plugins 43 exit 0 44 ;; 45 46 --help) 47 usage 0 48 ;; 49 50 --cflags) 51 echo -I/usr/include/libxml2 52 ;; 53 54 --libs) 55 echo -lxml2 -lxslt 56 ;; 57 58 *) 59 usage 60 exit 1 61 ;; 62 esac 63 shift 64done 65 66exit 0 67